package com.minyue.sqlsession;

import java.util.List;

/**
 * @author ：minyue
 * @date ：Created in 2021/7/22 11:43 下午
 * @description：
 */
public interface SqlSession {

    <E> List<E> selectList(String statementId, Object... param) throws Exception;

    <T> T selectOne(String statementId, Object... param) throws Exception;

    int insert(String statementId, Object... param) throws Exception;

    int update(String statementId, Object... param) throws Exception;

    int delete(String statementId, Object... param) throws Exception;

    <T> T getMapper(Class<T> mapperClass);

    void close() throws Exception;
}
